#include "ThreadPool.hpp"
#include "Task.hpp"
#include "Log.hpp"



int main()
{
    LOG(DEBUG,"程序已加载");
    sleep(3);
    ThreadPool<Task>::GetInstance();
    sleep(2);

    ThreadPool<Task>::GetInstance();
    sleep(2);

    ThreadPool<Task>::GetInstance();
    sleep(2);

    ThreadPool<Task>::GetInstance()->Stop();

    ThreadPool<Task>::GetInstance()->wait();
    sleep(2);

    

    return 0;
}